package com.bigShen.pattern.rules.aOpenClosePrinciple;

/**
 * @Author eddy.shen
 * @Date 2020/2/25 21:33
 **/
public class JavaDiscountCourse extends JavaCourse {

    public JavaDiscountCourse(Integer id, String name, Double price) {
        super(id, name, price);
    }

    public Double getDiscountPrice() {

        return this.getPrice() * 0.8;

    }

}
